import { useState } from 'react';
import { useRequest } from 'umi';

import * as FieldServices from '@/services/demo';

export default () => {
  const [userData, setUserData] = useState();
  // 新建字段
  const userInfo = useRequest(FieldServices.getUserInfo, {
    manual: true,
  });

  return {
    userInfo,
    userData,
    setUserData,
  };
};
